package com.atguigu.spring.helloworld.annotation.generic;

import org.springframework.beans.factory.annotation.Autowired;

/*泛型依赖注入*/
public class BaseService<T> {

	@Autowired
	private BaseDao<T> dao;

	public void addNew(T entity){
		System.out.println("addNew by " + dao);
		dao.save(entity);
	}

}
